package com.ruoyi.system.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.domain.BsMenpiaoNum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Package: com.ruoyi.system.domain.dto
 * @Author: HanWL
 * @CreateTime: 2023-10-18 15:07
 * @Version: 1.0
 **/
@Data
@ApiModel(value = "门票时间及各时间的门票数量返回类", description = "门票时间及各时间的门票数量")
public class MenPiaoTimeDto {

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private Date startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private Date endTime;

    @ApiModelProperty("总数")
    private Integer total;

    @ApiModelProperty("门票分类数量")
    private List<BsMenpiaoNum> menPiaoNums;

}
